package com.siqi.hr.common.exportexcel.impl;

import java.util.ArrayList;
import java.util.List;

public class XRow {
	private int rowIndex;
	private List<XCell> cells = new ArrayList<XCell>();

	public int getRowIndex() {
		return this.rowIndex;
	}

	public void setRowIndex(int rowIndex) {
		this.rowIndex = rowIndex;
	}

	public int getCellsSize() {
		return this.cells.size();
	}

	public XRow addCell(XCell cell) {
		this.cells.add(cell);
		return this;
	}

	public XCell getCell(int cellIndex) {
		return (XCell) this.cells.get(cellIndex);
	}
}
